package com.gen.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zzx.dao.IUserDao;
import com.zzx.entity.User;

@Service
public class UserServiceImpl implements IUserService{
	@Autowired
	private IUserDao userDao;
	
	@Override
	public int insertUser(User user) {
		return userDao.insertUser(user);
	}

	@Override
	public int updateUserInfo(User user) {
		return userDao.updateUserInfo(user);
	}

	@Override
	public List<User> selectAllInfoFromUser(Integer startIndex, Integer pageSize) {
		return userDao.selectAllInfoFromUser(startIndex, pageSize);
	}

	@Override
	public User selectUserInfoById(Integer uid) {
		return userDao.selectUserInfoById(uid);
	}

}
